package com.cg.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cg.dao.BusinessSearchDao;
import com.cg.entity.BaseBusiness;
import com.cg.entity.BusinessSearch;
import com.cg.utils.R;

/**
 * 自定义布局
 * @author cumt
 *
 */
@Service("businessSearchServiceImpl")
public class BusinessSearchServiceImpl {
	
	@Autowired
	BusinessSearchDao businessSearchDao;
	
	
	public List<BusinessSearch> queryList(Map<String, Object> params){
		
		return businessSearchDao.queryList(params);
	}
	
	public List<BusinessSearch> queryListByGroup(Map<String,Object> query){
		
		return businessSearchDao.queryListByGroup(query);
	}
	
	
	
	public R save(BusinessSearch search){
		businessSearchDao.save(search);
		return R.ok();
	}
	
	public int queryTotal(Map<String,Object> query) {
		
		return businessSearchDao.queryTotal();
	}
	
	public R update(BusinessSearch search){
		businessSearchDao.update(search);
		return R.ok();
	}
	
	public void deleteBatch(Long[] ids) {
		businessSearchDao.deleteBatch(ids);
	}

	
	public BusinessSearch queryObject(Long id) {
		return businessSearchDao.queryObject(id);
	}
}
